/*
 * @(#)UserKeyword.java $version 2012. 5. 11.
 *
 */

package com.mywep.myalimi.model;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Date;

import com.mywep.myalimi.common.BaseModel;

/**
 * @author 한지웅
 */
public class UserKeyword extends BaseModel {
	private String id;
	private String keyword;
	private Date regDate;
	private int userKeywordKey;

	private int newContentCount;
	private int userContentCount;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	public Date getRegDate() {
		return regDate;
	}
	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}
	public int getUserKeywordKey() {
		return userKeywordKey;
	}
	public void setUserKeywordKey(int userKeywordKey) {
		this.userKeywordKey = userKeywordKey;
	}

	public String getEncodedKeyword() throws UnsupportedEncodingException {
		return URLEncoder.encode(this.keyword, "UTF-8");
	}

	public int getNewContentCount() {
		return newContentCount;
	}

	public void setNewContentCount(int newContentCount) {
		this.newContentCount = newContentCount;
	}

	public int getUserContentCount() {
		return userContentCount;
	}

	public void setUserContentCount(int userContentCount) {
		this.userContentCount = userContentCount;
	}
}
